/*
 *
 * Copyright 2007, 2008 Tiberiumlabs
 *
 * This file is part of Tiberiumlabs Lailaps.
 *
 * Tiberiumlabs Lailaps is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tiberiumlabs Lailaps is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.tiberiumlabs.lailaps.gui.elements.ui;

import java.awt.Color;
import javax.swing.JComponent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.metal.MetalProgressBarUI;

/**
 *
 * @author <a href="paranoid.tiberiumlabs@gmail.com">Paranoid</a>
 */
public class ProgressBarUI extends MetalProgressBarUI {

    //private static final Color DEFAULT_BACKGROUND = UIManager.getColor("ProgressBar.background");
    //private static final Color DEFAULT_FOREGROUND = UIManager.getColor("ProgressBar.foreground");
    //private static final Color SELECTION_BACKGROUND = UIManager.getColor("ProgressBar.selectionBackground");
    //private static final Color SELECTION_FOREGROUND = UIManager.getColor("ProgressBar.selectionForeground");
    private static final Color SELECTION_BACKGROUND = new Color(51, 51, 51);
    //private static final Color SELECTION_FOREGROUND = UIManager.getColor("ProgressBar.selectionForeground");

    public static ComponentUI createUI(JComponent c) {
	return new ProgressBarUI();
    }

    @Override
    protected Color getSelectionBackground() {
        //return super.getSelectionBackground();
        return SELECTION_BACKGROUND;
    }

    /*
    @Override
    protected Color getSelectionForeground() {
        return super.getSelectionForeground();
        //return SELECTION_FOREGROUND;
    }
     */

}
